注册 登录
中国神经科学论坛 返回首页

thinker的个人空间 https://bbs.bioguider.com/?2 [收藏] [复制] [分享] [RSS]

日志

彻底了解Kolmogorov-Smirnov Test的原理及用法

已有 19059 次阅读2006-11-3 12:25 |个人分类:软件使用|


在进行cumulative probability统计(如下图)的时候,你怎么知道组之间是否有显著性差异?有人首先想到单因素方差分析或双尾检验(2 tailed TEST)。其实这些是不准确的,最好采用Kolmogorov-Smirnov test(柯尔莫诺夫-斯米尔诺夫检验)来分析变量是否符合某种分布或比较两组之间有无显著性差异。

Kolmogorov-Smirnov test原理:寻找最大距离(Distance), 所以常简称为D法。 适用于大样本。 KS test checks if two independent distributions are similar or different, by generating cumulative probability plots for two distributions and finding the distance along the y-axis for a given x values between the two curves. From all the distances calculated for each x value, the maximum distance is searched.

如何分析结果呢?This maximum distance or maximum difference is then plugged into KS probability function to calculate the probability value.  The lower the probability value is the less likely the two distributions are similar.  Conversely, the higher or more close to 1 the value is the more similar the two distributions are.极端情况:如果P值为1的话,说明两给数据基本相同,如果P值无限接近0,说明两组数据差异性极大。

 
有一个网站可以进行在线的统计,你只需要输入数据就可以了。地址如下:http://www.physics.csbsju.edu/stats/KS-test.n.plot_form.html

当然还有更多的软件支持这个统计,如SPSS,SAS,MiniAnalysis,Clampfit10

根据软件统计出来后给出的结果决定有没有显著性差异,如果D max值>D 0.05。则认为有显著性差异。D 0.05的经验算法:1.36/SQRT(N) 其中SQRT为平方要,N为样本数。D 0.01经验算法1.64/SQRT(N) 。当然最准确的办法还是去查KS检定表。不过大多数软件如CLAMPFIT,MINIANALYSIS统计出来的结果都是直接有P值。根据这个值(alpha=0.05)就可以断定有没有差异了。

路过

雷人

握手

鲜花

鸡蛋

发表评论 评论 (8 个评论)

回复 shill 2007-1-8 02:54
能不能详细点介绍下kolmogorov-smirnov test
回复 thanks 2007-1-16 22:09
能加上个实例就perfect
回复 thanks 2007-1-16 22:10
还有就是如何计算最大距离。 能给点提示吗? qq:183242913
回复 kool 2007-1-18 05:59
最大距离不是你能量出来的,软件会自动在两个组在寻找最大距离。
回复 erline 2007-5-12 00:26
能不能给个实例啊,谢谢
回复 joanna 2007-5-25 21:51
能介绍篇关于K-S test 的英文文献吗?谢谢了
回复 2007-7-11 04:24
其实不用知道太多的原理,软件能帮你解决一切问题。知道这样的例子需要用KS TEST就行了。
回复 游客 2007-11-30 00:58
谢谢

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

小黑屋|手机版|Archiver|生物行[生物导航网] ( 沪ICP备05001519号 )

GMT+8, 2024-5-19 02:37 , Processed in 0.017937 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部